import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //获取下个交易日
  queryNextTranDt: (query) => api.get(`${config.interfaces.type1}tradeOperate/queryNextTranDt`, query),
  // 获取买入收益率/买入行权收益率
  getRate: (query) => api.get(`${config.interfaces.type1}bondTrade/getRate`, query),
  // 应计利息
  getInterest: (query) => api.get(`${config.interfaces.type1}bondTrade/queryBondInfo`, query),
  // 应计利息新接口
  getInterestNew: (query) => api.get(`${config.interfaces.type5}instrument-server/bond/basicInfo`, query),
  // 获取执行编号
  getExecuteNumber: (query) => api.post(`${config.interfaces.type1}bondTrade/blockRequest`, query),
};
